<?php
namespace app\admin\validate;
use think\Validate;

class Cat extends Validate {
    protected $rule = [
        ['cat_name','require|max:20','名称必须传递|名称不得超过20个字符'],
    ];
}